package com.sxz.sbs.module.client.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by hp on 2018/1/10.
 * 楼号列表Bean
 */

public class BuildingBean {

    /**
     * lastPage : true
     * pageSize : 10
     * pageNumber : 1
     * firstPage : true
     * list : [{"txtName":"连二狗,连振","Parking_Id":3354,"tempcolumn":0,"txt_BuildNum":"三号楼","Id":1,"temprownumber":1},{"txtName":"admin,tian,连振,总监级别","Parking_Id":3354,"tempcolumn":0,"txt_BuildNum":"四号楼","Id":2,"temprownumber":2},{"txtName":null,"Parking_Id":3354,"tempcolumn":0,"txt_BuildNum":"五号楼","Id":3,"temprownumber":3}]
     * totalRow : 3
     * totalPage : 1
     */



    private boolean lastPage;
    private int pageSize;
    private int pageNumber;
    private boolean firstPage;
    private int totalRow;
    private int totalPage;
    private List<ListBean> list;

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }

    public int getTotalRow() {
        return totalRow;
    }

    public void setTotalRow(int totalRow) {
        this.totalRow = totalRow;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * txtName : 连二狗,连振
         * Parking_Id : 3354
         * tempcolumn : 0
         * txt_BuildNum : 三号楼
         * Id : 1
         * temprownumber : 1
         *  "IsContains": 1  #标记 1 负责，2 未负责,
         */
        private boolean isChecked;
        private boolean isShow;
        private int IsContains;
        private String txtName;
        private int Parking_Id;
        private int tempcolumn;
        private String txt_BuildNum;
        private int Id;
        private int temprownumber;
        private String managerIds;

        public String getTxtName() {
            return txtName;
        }

        public void setTxtName(String txtName) {
            this.txtName = txtName;
        }

        public int getParking_Id() {
            return Parking_Id;
        }

        public void setParking_Id(int Parking_Id) {
            this.Parking_Id = Parking_Id;
        }

        public int getTempcolumn() {
            return tempcolumn;
        }

        public void setTempcolumn(int tempcolumn) {
            this.tempcolumn = tempcolumn;
        }

        public String getTxt_BuildNum() {
            return txt_BuildNum;
        }

        public void setTxt_BuildNum(String txt_BuildNum) {
            this.txt_BuildNum = txt_BuildNum;
        }

        public int getId() {
            return Id;
        }

        public void setId(int Id) {
            this.Id = Id;
        }

        public int getTemprownumber() {
            return temprownumber;
        }

        public void setTemprownumber(int temprownumber) {
            this.temprownumber = temprownumber;
        }

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }

        public boolean isShow() {
            return isShow;
        }

        public void setShow(boolean show) {
            isShow = show;
        }

        public String getManagerIds() {
            return managerIds;
        }

        public void setManagerIds(String managerIds) {
            this.managerIds = managerIds;
        }

        public int getIsContains() {
            return IsContains;
        }

        public void setIsContains(int isContains) {
            IsContains = isContains;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeByte(this.isChecked ? (byte) 1 : (byte) 0);
            dest.writeByte(this.isShow ? (byte) 1 : (byte) 0);
            dest.writeInt(this.IsContains);
            dest.writeString(this.txtName);
            dest.writeInt(this.Parking_Id);
            dest.writeInt(this.tempcolumn);
            dest.writeString(this.txt_BuildNum);
            dest.writeInt(this.Id);
            dest.writeInt(this.temprownumber);
            dest.writeString(this.managerIds);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.isChecked = in.readByte() != 0;
            this.isShow = in.readByte() != 0;
            this.IsContains = in.readInt();
            this.txtName = in.readString();
            this.Parking_Id = in.readInt();
            this.tempcolumn = in.readInt();
            this.txt_BuildNum = in.readString();
            this.Id = in.readInt();
            this.temprownumber = in.readInt();
            this.managerIds = in.readString();
        }

        public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }
}
